cmake_minimum_required(VERSION 3.10)
project(RtcWake)

# 设置C++标准
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 包含目录
include_directories(includes)

# 添加可执行文件
add_executable(rtcwake
    src/main.cpp
    src/rtcwake.cpp
)

# 设置目标属性
target_compile_features(rtcwake PRIVATE cxx_std_17)

# 在Windows上链接必要的库
if(WIN32)
    target_link_libraries(rtcwake powrprof)
endif()